﻿using shopsoft.models.ClassBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shopsoft.models
{
    /// <summary>
    /// 会员信息
    /// </summary>
    [Serializable]
    public class Member : BaseFields
    {
        /// <summary>
        /// 企业
        /// </summary>
        public Company Company { get; set; }

        /// <summary>
        /// 库房
        /// </summary>
        public Store Store { get; set; }

        /// <summary>
        /// 会员等级
        /// </summary>
        public MemberGrade MemberGrade { get; set; }

        /// <summary>
        /// 会员编号
        /// </summary>
        public string MemberNo { get; set; }
        
        /// <summary>
        /// 会员密码
        /// </summary>
        public string MemberPassWord { get; set; }

        /// <summary>
        /// 会员照片
        /// </summary>
        public byte MemberPhoto { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public bool? Sex { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public DateTime Birthday { get; set; }
        
        /// <summary>
        /// 固定电话
        /// </summary>
        public string TelPhone { get; set; }
        
        /// <summary>
        /// 手机号码
        /// </summary>
        public string MobilePhone { get; set; }
        
        /// <summary>
        /// EMail
        /// </summary>
        public string EMail { get; set; }

        /// <summary>
        /// 证件类型
        /// </summary>
        public int IdentityType { get; set; }

        /// <summary>
        /// 证件编号
        /// </summary>
        public string IdentityNo { get; set; }

        /// <summary>
        /// 省\自治区\直辖市
        /// </summary>
        public string Province { get; set; }

        /// <summary>
        /// 城市
        /// </summary>
        public string City { get; set; }

        /// <summary>
        /// 区县
        /// </summary>
        public string District { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 工作单位
        /// </summary>
        public string WorkUnit { get; set; }

        /// <summary>
        /// 会员消费余额
        /// </summary>
        public double MemberBalance { get; set; }

        /// <summary>
        /// 剩余消费次数
        /// </summary>
        public int LeavingDealtime { get; set; }

        /// <summary>
        /// 剩余消费次数
        /// </summary>
        public int RemainingTime { get; set; }

        /// <summary>
        /// 会员积分
        /// </summary>
        public int MemberBouns { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Comment { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime ValidityDate { get; set; }

        /// <summary>
        /// 注册日期
        /// </summary>
        public DateTime RegDate { get; set; }

        /// <summary>
        /// 数据更新日期
        /// </summary>
        public DateTime UpdateDateTime { get; set; }

        /// <summary>
        /// 是否内部共享
        /// </summary>
        public int IsShareMemberInfos { get; set; }

        /// <summary>
        /// 云端会员
        /// </summary>
        public int MemberSID { get; set; }

        /// <summary>
        /// 会员状态
        /// </summary>
        public int MemberState { get; set; }

        /// <summary>
        /// 数据更新者
        /// </summary>
        public Users OperatorNo { get; set; }

        /// <summary>
        /// 删除流水号
        /// </summary>
        public string DeleteNo { get; set; }

        /// <summary>
        /// 照片数量
        /// </summary>
        public int? PhotoCount { get; set; }
    }
}
